home *** CD-ROM | disk | FTP | other *** search
/ Collection of Tools & Utilities / Collection of Tools and Utilities.iso / edit / sled11.zip / SLED.DOC < prev    next >
Text File  |  1988-09-09  |  29KB  |  579 lines

  1.  
  2.  
  3.                                      SLED and SLHED
  4.  
  5.         SLED and SLHED are small, fast text editors for the IBM PC
  6.         (registered TM of International Business Machines Corp.) and close
  7.         compatibles.  They are designed for program, batch and data file
  8.         editing, and simple word processing.  They can read and write a
  9.         variety of file formats and are useful as file conversion
  10.         utilities.  Many files can be edited at once, limited only by
  11.         available memory.
  12.  
  13.         There are two versions of the editor: SLED, for monochrome and
  14.         color monitors running in text mode, and SLHED, that takes
  15.         advantage of the 90 columns and 43 lines of text available using
  16.         the graphics mode of the Hercules Graphics adapter (registered TM
  17.         of Hercules Computer Technology).
  18.  
  19.         SLED, SLHED and the document you are reading are all Copyright
  20.         1987 by:
  21.  
  22.                 Sam Wilmott
  23.                 Suite 1503, 2201 Riverside Drive
  24.                 Ottawa, Ontario, Canada K1H 8K9
  25.  
  26.         You are welcome to use them and pass copies of them along to
  27.         others as long as:
  28.         (1) you always keep SLED, SLHED and this document together,
  29.         (2) you don't give anyone copies of the programs or of this
  30.             document that have been modified in any way, and
  31.         (3) you don't charge anyone for copies of the programs or of the
  32.             documentation (other than to cover reasonable handling,
  33.             packaging and postal costs).
  34.  
  35.         If you find yourself using SLED or SLHED regularly then please
  36.         remember that I didn't get them for free.  Support the development
  37.         of cheap and useful software by sending $15 to the above address.
  38.         For $15 I can't afford to send you a leather-bound copy of the
  39.         manual or guarantee that there will be a "version 2" of the
  40.         editor.  You don't need a manual or "quick reference card" close
  41.         at hand to use the editors.  Both SLED and SLHED have been in use
  42.         for over six months by a variety of people and no problems have
  43.         been found with the programs.  If you send the $15 you will,
  44.         however, be on my list of nice people who should be told about any
  45.         problems that are found with the editors or any new version.
  46.  
  47.  
  48.         SLED and SLHED                                               Page 2
  49.  
  50.         GETTING STARTED
  51.  
  52.         You run the editor by entering the name of the editor at the DOS
  53.         prompt, followed by the files to be edited and the options to be
  54.         used.  An MS-DOS machine that is not a close copy of an IBM PC may
  55.         require use of the "slow" option.  Refer to using /S on the
  56.         command line in the "SCREEN COLORS" section.  You will also want
  57.         to look at the "OPTIONS" and "SCREEN COLORS" sections for all the
  58.         ways in which the editor can be configured.
  59.  
  60.         To start with, here are three essential commands:
  61.  
  62.         Alt-H   Display a list of all the commands.  You can return to
  63.                 editing by using the escape key, or enter any command
  64.                 or text character while still viewing the help page.
  65.  
  66.         Alt-Q   Discard from memory all files being edited, terminate the
  67.                 editor, and return to DOS.  See F7 for a less drastic exit.
  68.  
  69.         Esc     The escape key will always terminate the current
  70.                 operation.  If you are being prompted for a file name or a
  71.                 search string, Esc will get you out of it.  It is always
  72.                 safe to press Esc, as it doesn't do anything itself.
  73.  
  74.  
  75.         MOVING THE CURSOR AROUND AND SIMPLE EDITING
  76.  
  77.         Home    
  78.                 Move the cursor to the start of the line.
  79.  
  80.         End     
  81.                 Move the cursor to the end of the line.
  82.  
  83.         PgUp    
  84.                 Move the cursor up 22 lines.
  85.  
  86.         PgDn    
  87.                 Move the cursor down 22 lines.
  88.  
  89.         Del     
  90.                 Delete the character under the cursor, or if at the 
  91.                 end of a line, join the line with the cursor on it with
  92.                 the one following.
  93.  
  94.         Backspace
  95.                 Delete the character to the left of the cursor, or if at
  96.                 the start of a line, join the line with the previous one.
  97.  
  98.         Tab     Move the cursor right to the next tab stop (usually every
  99.                 8 columns).
  100.  
  101.         Shift-Tab  
  102.                 Move the cursor left to the previous tab stop.
  103.  
  104.         Enter
  105.                 Put a line break where the cursor is, and put the cursor
  106.                 at the start of the new line.
  107.  
  108.         Up-cursor
  109.                 Move the cursor one line up in the file.
  110.  
  111.  
  112.         SLED and SLHED                                               Page 3
  113.  
  114.         Down-cursor
  115.                 Move the cursor one line down in the file.
  116.  
  117.         Left-cursor
  118.                 Move the cursor one character left on the line.
  119.  
  120.         Right-cursor
  121.                 Move the cursor one character right on the line.
  122.  
  123.         Ctrl-Home
  124.                 Move the cursor to the start of the file.
  125.  
  126.         Ctrl-End
  127.                 Move the cursor to the end of the file.
  128.  
  129.         Ctrl-PgUp
  130.                 Move the cursor to the top of the screen.
  131.  
  132.         Ctrl-PgDn
  133.                 Move the cursor to the bottom of the screen.
  134.  
  135.         Ctrl-Right-cursor
  136.                 Move the cursor to the right edge of the screen.  If the
  137.                 cursor is already at the right edge of the screen, scroll
  138.                 the whole screen 60 columns right.
  139.  
  140.         Ctrl-Left-cursor
  141.                 Move the cursor to the left edge of the screen.  If the
  142.                 cursor is already at the left edge of the screen, scroll
  143.                 the whole screen 60 columns left.
  144.  
  145.         Ctrl-Backspace
  146.                 Delete the line with the cursor on it.
  147.  
  148.         Ctrl-Enter
  149.                 Duplicate the line with the cursor on it and place the
  150.                 cursor on the new line.
  151.  
  152.         Alt-J   Join the line with the cursor on it with the following.
  153.  
  154.         Alt-K   Erase the rest of the line starting at the cursor.
  155.  
  156.         Alt-S   Split the line at the cursor, leaving the cursor in place.
  157.  
  158.         Alt-Z   Move the cursor to where it was before the last Ctrl-Home,
  159.                         Ctrl-End, Alt-B, Alt-T or search.
  160.  
  161.         F6      Make the line with the cursor the screen's middle line.
  162.  
  163.         F9      Treat the next key typed as text, even if it is an editor
  164.                 command.
  165.                 
  166.         F10     Insert an empty line after the one with the cursor on it
  167.                 and move the cursor to the start of the new line.  This is
  168.                 equivalent to pressing End and then Enter.
  169.  
  170.  
  171.         SLED and SLHED                                               Page 4
  172.  
  173.         SEARCHING AND REPLACING
  174.  
  175.         F2 starts a search.  It asks for what is to be found.  If you end
  176.         your entry with Enter, it is immediately searched for and the
  177.         cursor is moved to the first instance found.  If you end your
  178.         entry with either F1 or F2, you are then prompted for a
  179.         replacement.  If you end the replacement text with Enter, the
  180.         search text is searched for, and if it is found, you are asked to
  181.         press F2 to confirm that you want to make the replacement.  If the
  182.         replacement is ended with F1 or F2 again, all instances of the
  183.         search text are replaced by the replacement, from the cursor
  184.         position to the end of the file.
  185.  
  186.         Once a search has been started using F2, F1 can be used to repeat
  187.         or continue the previous search or search/replace.  When you are
  188.         asked to press F2 to confirm a replacement, pressing any other key
  189.         abandons the search and does what that key would normally do.
  190.         In either case, pressing F1 will again resume the search.
  191.  
  192.         If a multiple search/replace seems to be taking a long time, it
  193.         can be stopped by pressin